@import './src/common/css/variables.scss';

html,
body {
  border: 0;
  font-family: 'PingFangSC-Regular', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'Microsoft JhengHei', '华文细黑';
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #333333;
  line-height: 20px;
  overflow-x: hidden;
}

div,
span,
object,
iframe,
img,
table,
caption,
thead,
tbody,
tfoot,
tr,
tr,
td,
article,
aside,
canvas,
details,
figure,
hgroup,
menu,
nav,
footer,
header,
section,
summary,
mark,
audio,
video {
  border: 0;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
cit,
code,
del,
dfn,
em,
ins,
q,
samp,
small,
strong,
sub,
sup,
b,
i,
hr,
ol,
ul,
li,
fieldset,
legend,
dl,
dt,
label {
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
}

article,
aside,
canvas,
figure,
figure img,
figcaption,
hgroup,
footer,
header,
nav,
section,
audio,
video {
  display: block;
}

table {
  border-collapse: separate;
  border-spacing: 0;

  caption,
  th,
  td {
    text-align: left;
    vertical-align: middle;
  }
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

a img {
  border: 0;
}

:focus {
  outline: 0;
}

* {
  box-sizing: border-box;
}

textarea {
  resize: none;
  -webkit-appearance: none;
}

input {
  -webkit-appearance: none;
}

select {
  background-color: #fff;
}

i {
  font-style: normal;
}

.full-width {
  width: 100% !important;
  min-height: 28px;
}

.search-form-box {
  width: 1040px;
  padding-right: 20px;
}

.el-dialog__body {
  padding: 20px !important;
}

.content-main-box {
  width: 1020px;
  margin: 0 auto;
}

.form_btns {
  text-align: right;
}

.el-input-number.is-controls-right .el-input__inner {
  text-align: left !important;
}

.el-input-number.is-controls-right .el-input-number__decrease {
  bottom: 2px !important;
}

.form-item-height {
  min-height: 52px;
}

.container {
  min-height: 100%;
}

.el-image-viewer__img {
  width: auto !important;
}

// 表单样式重置
.el-dialog {
  .el-form {
    padding: 0px;
  }

  .el-dialog__footer {
    text-align: center;
  }
}

.el-form-search {
  padding: 15px 30px 5px 30px;

  .el-input__inner {
    min-width: 230px;
    background: #f2f2f2;
    border-radius: 5px;
    border: 0px;
  }

  .el-select__caret {
    color: #333333 !important;
    font-size: 12px !important;
  }

  input {
    background: #f2f2f2;
  }

  .el-form-item--mini {
    margin-bottom: 10px;

    .el-form-item__label {
      font-size: 12px;
    }

    .el-input__inner {
      font-size: 12px;
    }

    .el-checkbox__label {
      font-size: 12px;
    }

    .el-radio__label {
      font-size: 12px;
    }
  }

  .el-checkbox-group {
    margin-bottom: -5px;
  }

  input::-webkit-input-placeholder {
    color: #cccccc;
  }

  input::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #cccccc;
  }

  input:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #cccccc;
  }

  input:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #cccccc;
  }
}

.el-form-edit {
  padding: 30px 30px 30px 30px;
}

.el-form-info {
  padding: 0 30px 30px 30px;
}

.content-page {
  padding: 30px 30px 20px 30px;
}

.normal-btn {
  border-radius: 3px;
}

.tab-btn-box {
  text-align: right;
  position: fixed;
  top: 4px;
  right: 20px;
  z-index: 999;
}

// 表格样式重置
.el-table-padding.el-table {
  th:first-child {
    padding-left: 50px;
  }

  tr td:first-child {
    padding-left: 50px;
  }
}

.el-table-reset.el-table {
  td,
  th {
    padding: 10px 0;
  }

  td,
  th.is-leaf {
    border-bottom: 0px;
  }

  .cell {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 20px;
  }

  th .cell {
    color: #999999;
  }

  .el-button {
    padding: 0px;
    font-size: 14px;
    font-weight: 400;
    // color: #333333;
    line-height: 20px;
  }

  .el-button:hover {
    color: #409eff;
  }

  .el-table__body tr td {
    background: #f8f8f8;
  }

  .el-table__body tr.el-table__row--striped td {
    background: #ffffff;
  }

  .el-table__body tr.hover-row td,
  .el-table__body tr:hover td {
    background: #e5e9f6 !important;
  }

  .el-table__fixed-right::before,
  .el-table__fixed::before {
    display: none;
  }

  &::before {
    display: none;
  }
}

// 分页控制器重置
.el-pagination-reset.el-pagination {
  padding: 15px;
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  //background: #F8F8F8;

  .btn-prev {
    padding-right: 15px;
    //background: #F8F8F8;
    color: #666666;
  }

  .btn-next {
    padding-left: 15px;
    //background: #F8F8F8;
    color: #666666;
  }

  .el-pager {
    li {
      height: 28px;
      line-height: 29px;
      min-width: 28px;
      border-radius: 14px;
      margin: 0 10px;
    }

    li.active {
      background: #409eff;
      color: #ffffff;
    }
  }

  .el-pagination__total {
    margin-left: 25px;
  }
}

// 分页控制器重置
.normal-pagination.el-pagination {
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: #666666;

  .btn-prev {
    padding-right: 0px;
  }

  .btn-next {
    padding-left: 0px;
  }

  .el-pager {
    .number {
      min-width: 30px;
      height: 26px;
      padding: 0;
      margin: 0 5px;
      color: #606271;
      &:hover {
        color: #409eff !important;
        background: none;
      }
    }
    li {
      height: 28px;
      line-height: 29px;
      min-width: 28px;
      border-radius: 14px;
      margin: 0 10px;
      background: none;
    }

    li.active {
      color: #409eff;
    }
  }
}

.form-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  height: 62px;
  line-height: 22px;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;

  &::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: #3384fe;
    margin-right: 5px;
  }

  &::after {
    content: '';
    display: block;
    height: 1px;
    background: #f2f2f2;
    position: absolute;
    left: -30px;
    right: -30px;
    bottom: 0px;
  }

  .form-btn {
    float: right;
    margin-left: auto;
  }
}

// 表单详情
.form-details.m-t-30 {
  margin-top: 30px;
}

.form-details {
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  line-height: 20px;

  .form-title {
    margin-left: 20px;
    margin-right: 20px;
  }

  .form-title:first-child {
    margin-top: 0px;
  }

  & > .content {
    padding: 0px 30px 0px 30px;
  }

  .el-col {
    margin: 10px 0px;
  }
}

.fill-box {
  overflow: hidden;
}

.no-padding-right-box {
  .el-input__inner {
    padding-right: 0;
  }
}

.border-b-line {
  border-bottom: 1px solid #e5e5e5;
}

.self-mini-btn {
  height: 29px !important;
  line-height: 24px !important;
  padding: 0 10px !important;
  span {
    font-size: 14px !important;
  }
}

.home-bg {
  .el-collapse-item__header.is-active {
    border-bottom-color: #ebeef5;
  }
  .el-collapse-item__content {
    padding-bottom: 0;
  }
}

// form表单底部的按钮
.form-button-bottom {
  display: flex;
  justify-content: center;

  .el-button {
    margin-bottom: 20px;
  }
}

// tab 样式重置
.common-tab {
  .el-tabs__nav-wrap::after {
    display: none;
  }

  .el-tabs__item {
    padding: 0 10px !important;
    height: 30px;
    line-height: 30px;
    border-radius: 20px !important;
    margin-right: 20px;
    font-size: 14px;
    color: #666666;
    background: #fff;
  }

  .el-tabs__item:hover {
    color: #666;
  }

  .el-tabs__item.is-active {
    background: #409eff;
    color: #ffffff;
  }

  .el-tabs__active-bar {
    display: none;
  }

  .el-tabs__header {
    padding: 12px 30px;
    margin: 0px;
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    z-index: 99;
  }
}

.line-box {
  width: 100%;
  height: 10px;
  background: #f8f8f8;
}

.el-input-number {
  .el-input-number__increase {
    display: none;
  }

  .el-input-number__decrease {
    display: none;
  }
}

.el-loading-mask {
  z-index: 99999999 !important;
}

.form-small-height {
  .el-form-item {
    min-height: 34px;
  }
}

.form-mini-height {
  .el-form-item {
    min-height: 30px;
  }
}

.input-number-left {
  input {
    text-align: left !important;
    padding: 0 16px !important;
  }
}

.search-form-item-two {
  .el-form-item__content {
    display: flex;

    .el-input-group__append,
    .el-input-group__prepend {
      border: none;
      border-radius: 0;
    }

    .el-input:first-child {
      input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
      }
    }

    .el-input:last-child {
      input {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
      }
    }

    .el-input-group__append {
      background-color: #f2f2f2;
      color: #333;
    }
  }
}

.footer-btns-box {
  position: fixed;
  left: 0px;
  bottom: 0;
  width: 100%;
  padding: 16px 32px;
  background: #f9fafc;
  display: flex;
  justify-content: center;
}

// 深圳样式
.sz-main {
  background: $background-color;
}

.sz-padding {
  padding: 16px;
}

.order-input {
  width: 230px;
  height: 40px;
}

.full-scanner {
  width: 100%;
  height: 100%;
}

.order-item-title {
  width: 80px;
  margin-right: 20px;
  text-align: right;
}

.order-row-h {
  display: inline-flex;
  align-items: center;
  margin: 20px 0px;
}

.normal-text {
  font-size: 16px;
  color: #606266;
}

.small-text {
  font-size: 14px;
  color: #606266;
}

.option-box {
  text-align: center;
  margin-top: 20px;
}

.too-long-span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.my-card {
  display: block;
  padding: 16px;
  background: #ffffff;
  border-radius: 4px;
}

.tenant-dialog {
  .el-cascader__search-input {
    background: #f4f4f4 !important;
  }
}

.tenants-details {
  .el-tabs__header {
    padding: 12px 10px !important;
    background: #f8f8f8;
    margin: 0px;
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    z-index: 120 !important;
  }
}

.el-range-separator {
  padding: 0 !important;
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: #303133;
}

.work-header {
  .el-col {
    min-height: 30px;
    margin-bottom: 10px;
  }
}

.building-trees {
  .el-tree-node__label {
    font-size: 16px !important;
  }
}

.order-detail-container .el-collapse-item__header {
  font-weight: 600 !important;
  font-size: 15px !important;
}

.approval_container .el-dialog .el-dialog__body {
  padding: 0 20px !important;
}

.work-header {
  .el-col {
    min-height: 30px;
    margin-bottom: 10px;
  }
}

.building-trees {
  .el-tree-node__label {
    font-size: 16px !important;
  }
}

.order-detail-container .el-collapse-item__header {
  font-weight: 600 !important;
  font-size: 15px !important;
}

.button-rest {
  border-radius: 4px !important;
}

.group-operation-box {
  padding: 20px;

  .group-operation-title-box {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;

    .group-operation-title {
      flex: 1;
      display: flex;
      align-items: center;
      .large-title {
        font-size: 18px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        line-height: 25px;
      }

      .small-title {
        margin-left: 10px;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #666666;
        line-height: 25px;
      }

      .legend-box {
        margin-left: 50px;
        display: flex;
        align-items: center;
        .legend-title {
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          line-height: 20px;
        }
        .legend-item-box {
          margin-left: 16px;
          display: flex;
          align-items: center;
          .legend-item {
            margin-right: 26px;
            display: flex;
            align-items: center;

            .color-C2F4CB {
              background: #c2f4cb;
            }
            .color-FDC9C9 {
              background: #fdc9c9;
            }
            .color-DFFFE6 {
              background: #dfffe6;
            }
            .color-FFF1F1 {
              background: #fff1f1;
            }

            .icon {
              margin-right: 5px;
              width: 12px;
              height: 12px;
              border-radius: 3px;
            }

            .legend-item-title {
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #333333;
            }
          }
        }
      }
    }

    .dropdown-box {
      .el-dropdown-link {
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #333333;
        line-height: 25px;

        i {
          margin-right: 4px;
          font-size: 16px;
          &:last-child {
            margin-right: 0;
          }
        }

        img {
          margin-right: 4px;
          width: 16px;
          height: 16px;
        }
      }
    }

    .tag-box {
      display: flex;

      .el-tag {
        margin-left: 10px;
      }
    }
  }

  .group-operation-small-title-box {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;

    .group-operation-title {
      display: flex;
      align-items: center;
      margin-right: 26px;

      .title {
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        line-height: 20px;
      }

      .color-FF0000 {
        color: #ff0000;
      }
    }
  }

  .border {
    border-bottom: 1px solid #e5e5e5;
  }

  .group-operation-table {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid #ccc;
    thead {
      th {
        background: #f8f8f8;
        &:last-child {
          .el-table__cell {
            border-right: unset !important;
          }
        }
      }
      tr {
        background: #f8f8f8;
      }
      .cell {
        color: #666;
      }
    }
    tbody {
      tr {
        &:last-child {
          .el-table__cell {
            border-bottom: unset !important;
          }
        }
      }
      .cell {
        color: #333;
      }
      .bg-color-C2F4CB {
        background: rgba(194, 244, 203, 1);
        &:hover,
        &:focus {
          background: rgba(194, 244, 203, 1) !important;
        }
      }
      .bg-color-FDC9C9 {
        background: rgba(253, 201, 201, 1);
        &:hover,
        &:focus {
          background: rgba(253, 201, 201, 1) !important;
        }
      }
      .bg-color-DFFFE6 {
        background: rgba(223, 255, 230, 1);
        &:hover,
        &:focus {
          background: rgba(223, 255, 230, 1) !important;
        }
      }
      .bg-color-FFF1F1 {
        background: rgba(255, 241, 241, 1);
        &:hover,
        &:focus {
          background: rgba(255, 241, 241, 1) !important;
        }
      }
    }

    .el-table__cell {
      padding: 8px 0;
      border-right: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
    }
    .is-leaf {
      border-bottom: 1px solid #ccc !important;
    }

    .up {
      color: #29c37f;
      display: flex;
      align-items: center;
      justify-content: center;
      i {
        font-size: 18px;
        color: #29c37f;
      }
    }
    .down {
      color: #ff0000;
      display: flex;
      align-items: center;
      justify-content: center;
      i {
        font-size: 18px;
        color: #ff0000;
      }
    }
  }

  .group-operation-small-title-box {
    margin-top: 20px;
    height: 40px;
    padding: 10px 0;
  }
  .pointer {
    cursor: pointer;
  }
}
.el-message {
  z-index: 9999 !important;
}
.bigZindex {
  z-index: 4000;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-pointer-line {
  cursor: pointer;
}

.cursor-pointer-line:hover {
  text-decoration: underline;
}

.home-top-tab-btn {
  background: #444444 !important;
  color: #ffffff !important;
}

.svg-class {
  width: 800px !important;
  height: 700px !important;
}

.t-center {
  text-align: center !important;
}

.question-box{
  display: inline-block;
  color: #999999;
  border: 1px solid #999999;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  line-height: 13px;
  text-align: center;
  font-size: 12px;
}

.el-table .el-table__body tbody tr .active-grid,
.el-table thead.is-group th.active-grid {
  background: #ffab34 !important;
  div,
  span {
    color: #ffffff;
  }
}
//超出一行省略
.one-line-ellipsis {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

//超出两行省略
.two-line-ellipsis {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

//超出3行省略
.three-line-ellipsis {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

//集团运营首页的经营数据年累计
.home-operate-table {
  .el-table__body-wrapper {
    // overflow-x: hidden;
    // width: fit-content;
  }
  .el-table__header-wrapper {
    // overflow-x: hidden;
    // width: fit-content;
  }
}

.revenue-box {
  .el-collapse-item__wrap,
  .el-table__body-wrapper,
  .el-table__header-wrapper {
    width: fit-content;
  }
  .el-collapse-item__content {
    width: fit-content;
    overflow: auto;
  }
  .el-table--scrollable-x .el-table__body-wrapper {
    overflow-x: hidden;
  }
  .el-collapse-item__wrap {
    overflow: inherit;
  }
  .el-collapse-item__header {
    position: relative;
    padding-left: 20px;
  }
  .el-collapse-item__arrow {
    position: absolute;
    left: 0;
    top: 17px;
  }
}

.home-chart-box {
  .el-table thead .cell {
    font-size: 14px;
  }
}

.el-table::before {
  background: #ebeef5;
}

.tree-line {
  .el-tree-node {
    position: relative;
    padding-left: 16px;
  }
  .el-tree-node__content {
    margin-top: 10px;
  }
  .el-tree-node__children {
    padding-left: 16px;
  }

  .el-tree-node::before {
    content: '';
    height: 100%;
    width: 1px;
    position: absolute;
    left: -3px;
    top: -26px;
    border-width: 1px;
    border-left: 1px dashed #52627c;
  }

  .el-tree-node:last-child::before {
    height: 38px;
  }

  .el-tree-node::after {
    content: '';
    width: 24px;
    height: 20px;
    position: absolute;
    left: -3px;
    top: 12px;
    border-width: 1px;
    border-top: 1px dashed #52627c;
  }

  & > .el-tree-node::after {
    border-top: none;
  }
  & > .el-tree-node::before {
    border-left: none;
  }

  .el-tree-node__expand-icon {
    font-size: 18px;
    color: #000;
    &.is-leaf {
      color: transparent;
      // display: none;
    }
  }
}

.main-box-bg-gray {
  .menu-box {
    background: #f8f8f8;
  }
  .main {
    background: #f8f8f8;
    padding: 20px;
  }
  .container {
    background: #ffffff;
  }
}

.main-only-box-bg-gray {
  .main {
    background: #f8f8f8;
  }
}

.bg-white-dialog{
  .el-dialog .el-dialog__header {
    background: #ffffff;
    border-bottom: 1px solid #f1f1f1;
  }
  .el-dialog .el-dialog__header .el-dialog__close {
    color: #333;
  }
  .el-dialog__headerbtn {
    top: 18px;
  }
  .el-table__header {
    .el-table__cell {
      background: #f5f7fa;
    }
  }
}

.new-table-style {
  tr th {
    background: #787878!important;

    .cell {
      color: #fff;
    }
  }

  thead .cell {
    color: #fff;
  }

  thead th.el-table__cell {
    background: #787878!important;
  }

  td .cell {
    font-size: 16px!important;

    .el-button,
    span {
      font-size: 16px!important;
    }
  }
}

.border-bottom-D8D8D8 {
  border-bottom: 1px solid #D8D8D8;
}
